package com.snowy.hidden.util;

/**
 * 字符串工具类
 *
 * @author chenl
 *
 */
public class TxzhStringUtil {

	/**
	 * 页码 pageIndex
	 */
	public static final String PAGE_INDEX = "pageIndex";
	/**
	 * 数量 pageSize
	 */
	public static final String PAGE_SIZE = "pageSize";
	/**
	 * 排序 sortname
	 */
	public static final String SORT_NAME = "sortName";
	/**
	 * 排序 sortorder
	 */
	public static final String SORT_ORDER = "sortOrder";
	/**
	 * 排序字段 sequence
	 */
	public static final String SORT_NAME_VALUE = "sequence";
	/**
	 * 排序方式 sequence
	 */
	public static final String SORT_ORDER_VALUE = "asc";
	/**
	 * 空字符串 ""
	 */
	public static final String NULL = "";

	/**
	 * fullId
	 */
	public static final  String SEVERANCE = "/";
	/**
	 * 商品标识
	 */
	public static final  String COMMODITYCODE = "commodity";
	/**
	 * 商品明细标识
	 */
	public static final  String COMMODITYTYPE = "time";


	/**
	 * 判断字符串是否为空
	 *
	 * @param string
	 *            字符串
	 * @return true/false
	 */
	public static boolean isBlank(String string) {
		if ((null == string) || (TxzhStringUtil.NULL.equals(string.trim()))) {
			return true;
		}
		return false;
	}
}
